package com.entity.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 目录关系表
 * </p>
 *
 * @author chenMo
 * @since 2022-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CategoriesRelation对象", description="目录关系表")
public class CategoriesRelation implements Serializable {

private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "目录id")
    @TableField("categoryId")
    private Integer categoryId;

    @ApiModelProperty(value = "后继目录id")
    @TableField("nextCategoryId")
    private Integer nextCategoryId;

    @ApiModelProperty(value = "关联等级")
    @TableField("relationLevel")
    private Integer relationLevel;

    @ApiModelProperty(value = "创建人id")
    @TableField("createdById")
    private String createdById;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("createdByName")
    private String createdByName;

    @TableLogic
    @TableField(value = "isDeleted",fill = FieldFill.INSERT)
    private Integer isDeleted;

    @TableField(value = "createTime",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间", example = "2019-01-01 10:10:10")
    private Date createTime;

    @TableField(value = "updateTime",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更改时间", example = "2019-02-01 10:10:10")
    private Date updateTime;
}
